import { defineStore } from 'pinia' 
import localeEn from '@/utils/localeEn'
import localeESP from '@/utils/localeESP'
const localeStore = defineStore('locale',{
  state: ()=>{
    return {
      localeInfo:localeEn  as any
    }
  },
  getters: {
   
  },
  actions: {
    setLocaleType(data:any) {
      if(data == 'EN') {
        this.localeInfo = localeEn
      } else {
        this.localeInfo = localeESP
      }
    }
  },
})
export default localeStore;
